//
//  Phone.m
//  OC作业
//
//  Created by dllo on 15/12/2.
//  Copyright © 2015年 dllo. All rights reserved.
//

#import "Phone.h"

@implementation Phone




- (instancetype)initWithPhoneName:(NSString *)name
                             size:(float)size{
    self = [super init];
    if (self) {
        _name = name;
        _size = size;
    }
    return self;
}

+ (instancetype)phoneWithName:(NSString *)name
                         size:(float)size{
    Phone *phone = [[Phone alloc]initWithPhoneName:name size:size];
    return phone;
}




@end
